package com.lou1052.redis.config;

import java.util.HashSet;
import java.util.Set;

/**
 * 节点配置
 * Created with IntelliJ IDEA.
 * User: liuqing
 * Date: 2015/9/27
 * Time: 21:43
 * To change this template use File | Settings | File Templates.
 */
public class NodeConfig {

    private Set<NodeInfo> nodeInfoSet = new HashSet<>();

    /**
     * Getter for property 'nodeInfoSet'.
     *
     * @return Value for property 'nodeInfoSet'.
     */
    public Set<NodeInfo> getNodeInfoSet() {
        return nodeInfoSet;
    }

    public void addNodeInfo(NodeInfo nodeInfo){
        nodeInfoSet.add(nodeInfo);
    }
}
